//
//  IndexTableViewCell.swift
//  fsapp
//
//  Created by zguang on 17/7/27.
//  Copyright © 2017年 huangshengjie. All rights reserved.
//

import UIKit

class IndexTableViewCell: UITableViewCell {
    
    let title = UILabel()
    let detail = UITextView()
    var Headimage = UIImageView()
    
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        
        // Initialization code
    }
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        initUI()
        detail.isEditable = false
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func  initUI(){
        Headimage.frame = CGRect(x:width(21),y:height(26),width:width(183),height:height(241))
        title.frame = CGRect(x:width(248),y:height(33),width:width(174),height:height(32))
        title.font = UIFont.systemFont(ofSize: height(32))
        //title.sizeToFit()
        detail.frame = CGRect(x:width(248),y:height(82),width:width(475),height:height(180))
        title.textColor = naviColor
        detail.textColor =  UIColor.black
        detail.font = UIFont.systemFont(ofSize: height(28))
      //  self.contentView.addSubview(title)
        self.addSubview(Headimage)
        self.addSubview(title)
        self.addSubview(detail)
        
        
        
    
    }
    
}
